package com.yuanfengerp.Analysis.service;

import com.yuanfengerp.Analysis.model.Department;
import com.yuanfengerp.publicUtil.Result;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

public interface IDepartmentService {
    /**
     * 获取部门列表
     * @return
     */
    ArrayList<Department> getDepartmentList(Integer pageSize, Integer offset);
    /**
     * 新增部门
     * @param department
     * @return
     */
    Result<Department> insertDepartment(Department department);

    /**
     *  根据部门编号获取部门信息
     * @param department_Number
     * @return
     */
    ArrayList<Department> getDepartment(String department_Number);

    /**
     *  更新部门信息
     * @param  department
     * @return
     */

    Result<Department> updateDepartment(Department department);
}
